<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ClearGadgetItems</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ClearGadgetItems()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>ClearGadgetItems</b></font>(#Gadget)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Clears all the items from the specified gadget. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
 
The gadget to clear. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>Remarks</b></p><blockquote>



The Gadget must be one of the following types: 
<br>
<br>
- <a href="comboboxgadget.html">ComboBoxGadget()</a> 
<br>
- <a href="editorgadget.html">EditorGadget()</a> 
<br>
- <a href="listicongadget.html">ListIconGadget()</a> 
<br>
- <a href="listviewgadget.html">ListViewGadget()</a> 
<br>
- <a href="mdigadget.html">MDIGadget()</a> 
<br>
- <a href="panelgadget.html">PanelGadget()</a> 
<br>
- <a href="treegadget.html">TreeGadget()</a> 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenWindow</font>(0, 0, 0, 220, 150, "ClearGadgetItems", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#006666">    ListViewGadget</font>(0,10,10,200,100)
    <b><font color="#006666">For</font></b> a = 1 <b><font color="#006666">To</font></b> 10 :<font color="#006666"> AddGadgetItem </font>(0, -1, "Item "+<font color="#006666">Str</font>(a)) : <b><font color="#006666">Next</font></b>    <font color="#006666">; add 10 items</font>
<font color="#006666">    ButtonGadget</font>(1, 10, 120, 150, 20, "Clear Listview contents")
    <b><font color="#006666">Repeat</font></b>
      Event =<font color="#006666"> WaitWindowEvent</font>()
      <b><font color="#006666">If</font></b> Event = <font color="#924B72">#PB_Event_Gadget</font>
        <b><font color="#006666">If</font></b> <font color="#006666">EventGadget</font>() = 1
<font color="#006666">          ClearGadgetItems</font>(0)
        <b><font color="#006666">EndIf</font></b>
      <b><font color="#006666">EndIf</font></b>
    <b><font color="#006666">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="addgadgetitem.html">AddGadgetItem()</a>, <a href="removegadgetitem.html">RemoveGadgetItem()</a>, <a href="countgadgetitems.html">CountGadgetItems()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=cleargadgetitemlist.html>ClearGadgetItemList()</a> - <a href=index.html>Gadget Index</a> - <a href=closegadgetlist.html>CloseGadgetList()</a> -&gt;



</body></html>